package cn.yang.controller;

import cn.yang.service.TSiteService;
import com.zhentao.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/site")
public class SiteController {
    @Autowired
    private TSiteService siteService;
    @GetMapping("/siteList")
    public Result siteList(){
        return siteService.siteList();
    }
}
